<!DOCTYPE html>
<html lang="en">
<head>
    <title>报告详情</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <!--字体-->
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <!--图标-->
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <!--OA主样式-->
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=c7eda8a8">
    <link rel="stylesheet" href="/dist/css/skins/OA-skins.min.css?t=222aea35">
</head>
<body>
<section class="content" id="app">
    <iframe id="ifExprot" style="width:0px;height:0px;display: none;" frameborder="0"></iframe>
    <input type="button" value="下载12月份费用" @click="exportGet"/><br><br>
    <input type="button" value="下载1月份费用" @click="exportOne"/>
    <input type="button" value="服务部下载1月份费用" @click="exportServeOne"/>
    <br/><br/>
    <!-- /.box-body -->
</section>
<!--JQ-->
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<!--插件JS-->
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=3ad7b5d4"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oa.js?t=e424e6fc"></script>

<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script type="text/javascript">
    var app = new Vue({
        el: '#app',
        data: {},
        methods: {
            exportGet: function (attachId, fileName) {
                $('#ifExprot').attr('src', server.ip
                    + urlConfig.wreport.wreportCost.downExcel
                    + '?userId=' + getCurrentUser().id
                    + '&reportMonth=2017-12')
                ;
                return false;
            },
            exportOne: function (attachId, fileName) {
                $('#ifExprot').attr('src', server.ip
                    + urlConfig.wreport.wreportCost.downExcel
                    + '?userId=' + getCurrentUser().id
                    + '&reportMonth=2018-01')
                ;
                return false;
            },
            exportServeOne: function (attachId, fileName) {
                $('#ifExprot').attr('src', server.ip
                    + urlConfig.wreport.wreportCost.downExcelServe
                    + '?departId=' + getCurrentUser().departId
                    + '&reportMonth=2018-01')
                ;
                return false;
            }
        }
    });
</script>
</body>
</html>